﻿using System;
using System.Windows;
using System.Windows.Input;
using HospitalSelfServiceMachine.Bean;
using HospitalSelfServiceMachine.Utils;
using HospitalSelfServiceMachine.Views;
using MessageBoxImage = HospitalSelfServiceMachine.Bean.MessageBoxImage;

namespace HospitalSelfServiceMachine
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Label_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if(e.MouseDevice.LeftButton == MouseButtonState.Pressed)
            {
                Environment.Exit(0);
            }
        }

        private void MainMenuIconButton_Click(object sender, RoutedEventArgs e)
        {
            //Controls.MessageBox.Show("Hello", MessageBoxImage.Information,MessageBoxButton.YesNo);
            //container.Content = new RegisterView();         
            //menu.Visibility = Visibility.Collapsed;
            WindowsHelpers.MaskShowDialog(new HSMessageBox("Hello world"));
        }
    }
}
